import Login from './views/login.vue'
import NotFound from './views/404.vue'
import Main from './views/main.vue'
import Test from './views/menus/test.vue'
const routers = [

    /*{
     path: '/',
     component: Main,
     name: 'main',
     iconCls: 'el-icon-message',//图标样式class
     meta: {
     title: ''
     },
     children: [
     {
     path: '/', component: Home, name: '首页菜单', hidden: false,
     children:[
     {path:'/', component: Account, name: 'host'}
     ]
     }
     ],

     },*/
    /*{
     path: '/',
     component: Main,
     // name: 'live-main',
     meta: {
     title: '直播管理'
     },
     children: [
     {  path: '/', component: LiveMan, name: 'liveMan', hidden: false }
     ],

     },
     {
     path: '/host',
     component: Main,
     // name: 'data-main',
     meta: {
     title: '主播管理'
     },
     children: [
     {  path: '/', component: HostMan, name: 'hostMan', hidden: false }
     ],

     },
     {
     path: '/liveBaike',
     component: Main,
     // name: 'account-main',
     meta: {
     title: '直播百科'
     },
     children: [
     {  path: '/', component: LiveBaike, name: 'liveBaike', hidden: false }
     ],

     },
     {
     path: '/down',
     component: Main,
     // name: 'account-main',
     meta: {
     title: '工具下载'
     },
     children: [
     {  path: '/', component: Down, name: 'down', hidden: false }
     ],

     },
     {
     path: '/create_event',
     component: Main,
     // name: '创建直播',
     iconCls: 'el-icon-message',//图标样式class
     meta: {
     title: '创建直播'
     },
     children: [
     {  path: '/', component: LiveCreate, name: '创建直播间', hidden: false }
     ],

     },*/
    {
        path: '/',
        component: Main,
        meta: {
            title: '直播管理'
        },
        children: [
            {path: '/', component: Test, name: 'test'}

        ],

    },
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '*',
        hidden: true,
        redirect: {path: '/404'}
    }
];
export default routers;